package cn.xxm.ff.log.common.utils;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

import java.util.Properties;

/**
 * Created by xuxiaoming005 on 2018-09-07.
 *
 * @author xuxiaoming005
 */
public class LogDesensitizationPropertyConfigurer extends PropertyPlaceholderConfigurer {

    @Override
    protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props)
            throws BeansException {
        logger.info(props);
        super.processProperties(beanFactoryToProcess, props);
        PropertyUtil.loadProperitesFromFiles(props);
    }

}
